﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Bukovics.Workflow.Hosting
{
    /// <summary>
    ///  保持状态的模块类
    /// </summary>
    [Serializable]
    public sealed class PendingWorkItem
    {
        // Methods
        public PendingWorkItem()
        {

        }

        // Fields
        public int Blocked;
        public string Info;
        public Guid InstanceId;
        public DateTime NextTimer;

        public byte[] SerializedActivity = new byte[0];
        public Guid StateId;
        public int Status;
        public ItemType Type;
        public bool Unlocked;

        [Serializable]
        public enum ItemType
        {
            Instance,
            CompletedScope,
            ActivationComplete
        }

    }
}
